<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="jquery-1.6.2.js"></script>
<script type="text/javascript">


$(document).ready(function () {
	$("p").click(function () {
		$("div").slideToggle("slow",function (){alert("lock");});
	});
	
	$("ul > .topnav").css("border", "3px double red");
});

</script>
</head>
<body>
<div>
	<h1>哈哈</h1>
	<h2>哈哈哈哈哈</h2>
</div>
<p>If you click on me, I will disappear.</p>

<p style="line-height:100px">I will disappear.<br>ddddaaf</p>
<ul class="topnav">
    <li >aaaa<div class="topnav">dafafafsf</div>aafsdf</li>
    <li>Item 2 
        <ul><li>Nested item 1</li><li>Nested item 2</li><li>Nested item 3</li></ul>
       </li>
    <li>Item 3</li>
</ul>
<ul>
    <li class="topnav">Item 1</li>
    <li>Item 2 
        <ul><li>Nested item 1</li><li>Nested item 2</li><li>Nested item 3</li></ul>
       </li>
    <li>Item 3</li>
</ul>
<input type="text" size="20"/>
</body>
</html>